package com.ai.bitcoin.service.helper;

import com.ai.bitcoin.jpa.dao.RedeemCodeDao;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

@Component
public class RedeemServiceHelper {

    @Autowired
    private RedeemCodeDao redeemCodeDao;

    //更新兑换码状态
    @Transactional
    public int updateStatusById(int code,String id) {
        return  redeemCodeDao.updateStatusById(code,id);
    }

}
